package com.huawei.hwclouds.lubanops.demo.order.client;

import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;

import com.huawei.hwclouds.lubanops.demo.common.json.JsonUtil;
import com.huawei.hwclouds.lubanops.demo.product.client.ProductServiceClient;
import com.huawei.hwclouds.lubanops.demo.product.client.entity.GetProductDetailResult;

@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ProductServiceClientTest {

    @Test
    public void aTestGetProductDetail() {
        GetProductDetailResult result = ProductServiceClient.getProductDetail(1);
        System.out.println("get list:" + JsonUtil.toJSONString(result));
        Assert.assertTrue(result.getProductModel() != null);

    }

}
